package com.itheima.myinner.text3;

public class text {
    public static void main(String[] args) {
        Swim s1 = new Swim() {
            @Override
            public void Swimming() {
                System.out.println("续杯,我只服黑马");
            }
        };
        Swim s2 = () ->{ System.out.println("真人真事,我也只服黑马"); };
        s2.Swimming();
        s1.Swimming();
    }

//    public static void method(Swim swim){
//        swim.Swimming();
//    }
}
